package org.liushengpei.com.domain.vo;

import lombok.Data;
import org.liushengpei.com.domain.User;

import java.util.Date;

/**
 * 脱敏后的用户数据
 */
@Data
public class RemoveUserVO {

    /**
     * 用户id
     */
    private String id;

    /**
     * 用户头像
     */
    private String headImage;

    /**
     * 账号
     */
    private String account;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 电话号码
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 性别
     */
    private Integer sex;

    /**
     * 出生日期
     */
    private Date birthday;

    /**
     * 家庭住址
     */
    private String address;

    /**
     * 详细地址
     */
    private String addressDetail;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 删除标识
     */
    private Integer delFlag;

    public RemoveUserVO(User user) {
        this.id = user.getId();
        this.headImage = user.getHeadImage();
        this.account = user.getAccount();
        this.userName = user.getUserName();
        this.nickName = user.getNickName();
        this.address = user.getAddress();
        this.addressDetail = user.getAddressDetail();
        this.phone = user.getPhone();
        this.email = user.getEmail();
        this.sex = user.getSex();
        this.birthday = user.getBirthday();
        this.createTime = user.getCreateTime();
        this.updateTime = user.getUpdateTime();
        this.delFlag = user.getDelFlag();
    }
}
